<?php

namespace app\modules\api\models;

/**
 * @OA\Schema(
 *      schema="Group",
 *      required={"name","created_at","updated_at"},
 *     @OA\Property(
 *        property="id",
 *        description="主键",
 *        type="integer",
 *        format="int64",
 *    ),
 *     @OA\Property(
 *        property="parent_id",
 *        description="上级ID",
 *        type="integer",
 *        format="int64",
 *        default="0",
 *    ),
 *     @OA\Property(
 *        property="name",
 *        description="名称",
 *        type="string",
 *        maxLength=32,
 *    ),
 *     @OA\Property(
 *        property="path",
 *        description="层级",
 *        type="string",
 *        maxLength=16,
 *        default="",
 *    ),
 *     @OA\Property(
 *        property="sort",
 *        description="排序",
 *        type="integer",
 *        format="int64",
 *        default="0",
 *    ),
 * )
 */

/**
 * This is the model class for table "{{%Group}}".
 *
 * @property int $id 主键
 * @property int $parent_id 上级
 * @property string $name 名称
 * @property string $path 层级
 * @property int $sort 排序
 * @property int $created_at 创建时间
 * @property int $updated_at 更新时间
 */
class Group extends \yii\db\ActiveRecord
{
}
